﻿@model shenkong.Models.RepairRecord

@{
    ViewData["Title"] = "Create";
}

<h1>报修</h1>

<h4>宿舍报修</h4>
<hr />
<div class="row">
    <div class="col-md-4">
        <form asp-action="Create">
            <div asp-validation-summary="ModelOnly" class="text-danger"></div>
            @*<div class="form-group">
                <label asp-for="BuildName" class="control-label"></label>
                <input asp-for="BuildName" class="form-control" />
                <span asp-validation-for="BuildName" class="text-danger"></span>
            </div>*@
            <div class="form-group">
                <label asp-for="ApplyDate" class="control-label">申请时间</label>
                <input asp-for="ApplyDate" class="form-control" />
                <span asp-validation-for="ApplyDate" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="DormId" class="control-label">宿舍号</label>
                <input asp-for="DormId" class="form-control" />
                <span asp-validation-for="DormId" class="text-danger"></span>
            </div>
           @* <div class="form-group">
                <label asp-for="WorkId" class="control-label"></label>
                <input asp-for="WorkId" class="form-control" />
                <span asp-validation-for="WorkId" class="text-danger"></span>
            </div>*@
            <div class="form-group">
                <label asp-for="RepairProblem" class="control-label">问题描述</label>
                <input asp-for="RepairProblem" class="form-control" />
                <span asp-validation-for="RepairProblem" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Tel" class="control-label">联系电话</label>
                <input asp-for="Tel" class="form-control" />
                <span asp-validation-for="Tel" class="text-danger"></span>
            </div>
            @*<div class="form-group">
                <label asp-for="Zhuangtai" class="control-label"></label>
                <input asp-for="Zhuangtai" class="form-control" />
                <span asp-validation-for="Zhuangtai" class="text-danger"></span>
            </div>*@
            <div class="form-group">
                <label asp-for="RepairClass" class="control-label">维修类型</label>
                <select asp-for="RepairClass" class="form-control">
                    <option>水（水龙头、花洒、漏水、厕所堵塞等）</option>
                    <option>木（门、窗、床、书桌、柜子等）</option>
                    <option>电（灯、风扇、开关、热水器）</option>
                    <option>其它（配钥匙、白蚁、剪树枝）</option>
                </select>
                @*<input asp-for="RepairClass" class="form-control" />*@
                <span asp-validation-for="RepairClass" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="FreeTime" class="control-label">空闲时间</label>
                <select asp-for="FreeTime" class="form-control">
                    <option>周一</option>
                    <option>周二</option>
                    <option>周三</option>
                    <option>周四</option>
                    <option>周五</option>
                </select>
                <span asp-validation-for="FreeTime" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Replyer" class="control-label">申请人</label>
                <input asp-for="Replyer" class="form-control" />
                <span asp-validation-for="Replyer" class="text-danger"></span>
            </div>
            <br />

            <div class="form-group">
                <input type="submit" value="申请" class="btn btn-primary" />
            </div>
        </form>
    </div>
</div>

<div>
    @*<a asp-action="Index">Back to List</a>*@
</div>

@section Scripts {
    @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
